Skip to content

Conversation

lxiaodao
Copy link

In webmagic-selenium project.

  1. Add test code using chromedriver in windows.
  2. Add test code using javascript with chromedriver.It is good practice to save time.

@Test
public void testExcuteScript() {

System.getProperties().setProperty("webdriver.chrome.driver", "D:\\software\\chrome\\chromedriver.exe");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work in CI cycle?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass the junit test。But should push the chromedriver.exe file and modify the code as System.getProperties().setProperty("webdriver.chrome.driver", "classpath\chromedriver.exe").
I will do this later.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and then non-Windows?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run on windows system as backstage process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants